package com.gopay.common.domain.user.identify;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.gopay.common.domain.BaseEntity;

/**
 * 支付验证方式配置
 * @author zhuliang
 * @date 2016年5月10日
 */
@Entity
@Table(name = "RC_PAY_VERIFY_LIMIT")
public class RcPayVerifyLimit extends BaseEntity {

	private static final long serialVersionUID = 1L;
	
	private String code;
	private String name;
    private BigDecimal todayTotalLimit;
    private Integer version;
    private String createdOperId;
    private Date createdTs;
    private String lastUpdOperId;
    private Date lastUpdTs;
    
    @Id
    @SequenceGenerator(name = "RC_PAY_VERIFY_LIMIT_SEQ_GENERATOR", sequenceName = "RC_PAY_VERIFY_LIMIT_SEQ", allocationSize = 1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "RC_PAY_VERIFY_LIMIT_SEQ_GENERATOR")
    @Column(name = "CODE", length = 2)
	public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    
    @Column(name = "TODAY_TOTAL_LIMIT", precision = 18, scale = 2)
    public BigDecimal getTodayTotalLimit() {
        return todayTotalLimit;
    }
    public void setTodayTotalLimit(BigDecimal todayTotalLimit) {
        this.todayTotalLimit = todayTotalLimit;
    }
    
    @Column(name="NAME" ,length = 50)
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name = "VERSION", precision = 22, scale = 0)
    public Integer getVersion() {
        return version;
    }
    public void setVersion(Integer version) {
        this.version = version;
    }
    
    @Column(name = "CREATED_OPER_ID", length = 10)
    public String getCreatedOperId() {
        return createdOperId;
    }
    public void setCreatedOperId(String createdOperId) {
        this.createdOperId = createdOperId;
    }
    
    @Column(name = "CREATED_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreatedTs() {
        return createdTs;
    }
    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }
    
    @Column(name = "LAST_UPD_OPER_ID", length = 10)
    public String getLastUpdOperId() {
        return lastUpdOperId;
    }
    public void setLastUpdOperId(String lastUpdOperId) {
        this.lastUpdOperId = lastUpdOperId;
    }
    
    @Column(name = "LAST_UPD_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getLastUpdTs() {
        return lastUpdTs;
    }
    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

	
}
